﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ManageProject : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        DBActivity db = new DBActivity();
        bool regi = db.ProjectSubmit(txtPname.Text, txtDescription.Text, txtStart.Text, txtEnd.Text);
        if(regi){
            Server.Transfer("viewprojects.aspx");
        }
    }
    protected void Calendar1_SelectionChanged(object sender, EventArgs e)
    {
        txtStart_PopupControlExtender.Commit(start.SelectedDate.ToShortDateString());
    }
    protected void end_SelectionChanged(object sender, EventArgs e)
    {
        txtEnd_PopupControlExtender.Commit(end.SelectedDate.ToShortDateString());
    }
}